
package com.dstz.form.vo;

import java.io.Serializable;

import com.dstz.base.core.util.StringUtil;

/**
 * 对象功能:查询VO
 * 开发公司:向刚制作 
 * @author:xianggang
 * @date:2019-09-02 15:21:58
 */
public class SqlSearchVO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	// 名称
	private String name;
	
	// 条件
	private String con;
	
	// 值
	private String val;
	
	// 与或
	private String andOr = "and";
	
	// 括号
	private String bracket = "";
	
	// 是否是初始化
	private Integer isInit;
	
	// 是否是分组字段
	private Integer isGroup;
	
	public SqlSearchVO() {
		
	}
	
	public SqlSearchVO(String name, String con, String val) {
		this.name = name;
		this.con = con;
		this.val = val;
	}
	
	public String getAndOr() {
		if (StringUtil.isEmpty(andOr)) {
			return "and";
		}
		return andOr;
	}
	
	public String getBracket() {
		if (StringUtil.isEmpty(bracket)) {
			return "";
		}
		return bracket;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getCon() {
		return con;
	}
	
	public void setCon(String con) {
		this.con = con;
	}
	
	public String getVal() {
		return val;
	}
	
	public void setVal(String val) {
		this.val = val;
	}
	
	public Integer getIsInit() {
		return isInit;
	}
	
	public void setIsInit(Integer isInit) {
		this.isInit = isInit;
	}
	
	public Integer getIsGroup() {
		return isGroup;
	}
	
	public void setIsGroup(Integer isGroup) {
		this.isGroup = isGroup;
	}
	
	public void setAndOr(String andOr) {
		this.andOr = andOr;
	}
	
	public void setBracket(String bracket) {
		this.bracket = bracket;
	}
	
}